package com.chat.transmission.controller;

import com.chat.common.vo.R;
import com.chat.openfeign.client.BusinessDataService;
//import com.chat.openfeign.configuration.PropertiesTest;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 通讯模块
 *
 * @author wei kunJie
 * @date 2024/3/24 15:31:00
 */
@RestController
@RequestMapping("/transmission")
public class TestController {
    @Resource
    private BusinessDataService businessDataService;
//    @Resource
//    private PropertiesTest propertiesTest;
    /**
     * 发送消息测试接口
     * @return
     */
    @GetMapping("/test")
    public R test(){
        //测试openfeign远程调用
//        propertiesTest.say();
        return businessDataService.test();
    }
}
